home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
libs
/
dignet_2_1.lha
/
dignet
/
debug
/
DignetDebug.doc
next >
Wrap
Text File
|
1997-03-12
|
2KB
|
57 lines
From 2.1 we included resource tracking into the dignet.library.
We have provided two tools here which can help, but you should use them at your
own risk and they don't guarantee success when used.
DignetLIST
----------
This command is just dumping all the nets in use or that have been allocated.
If a program crashes or end without cleaning up the net it will be listed here.
The output could look like this:
No. 1 - Net: $777E040 Task: $77A41C8 (Dignet TERM) OK
No. 2 - Net: $7401930 Task: $7400278 (EAN reader) ERROR
It means net number 1 at address (the net you give to a function).
Task address which allocated it and the name of the task.
Finally if OK the task still exists, if ERROR the task is gone.
This is where the resource tracking comes in.
DignetKILL
----------
With this utility you can remove allocted memory, close device and abort IO
request on programs that is dead. The program must have used the
dignet.library of course.
When you find a program that says ERROR from the dump of DignetLIST you can
take the number which is first on the line and use this program, f.ex:
DignetKILL 2
if it was the program shown above. You will then get prompted if you are
sure, if yes, DignetKILL sends a break signal (mask $C000FFFF) to the program
(if you choose to use it on a living task), then aborts the IO requests and
finally frees the net structure, closes the device and clean up the resource
list.
You CAN use this on a living task if the task locks up waiting for chars to
be read on a port. You may experience that the system crashes if the program
jumps to other functions afterwards.
It's however safe to call the FreeNet() function right after a Abort since
the FreeNet() checks the resource list of the net's existance.
If the system lives you should be able to use the device again.
DISCLAIMER:
You use these programs and the dignet.library extirely on your own risk!